<?php global $options; foreach ($options as $value) {if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }}?>
<?php get_header(); ?>

<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/dbx_init.js"></script>


<div class="main">

	<div class="main_left_cat">
	
		<div class="main_left_cat_top">
		</div>
	
		<div class="main_left_cat_middle">
			 <?php while (have_posts()) : the_post(); if (current_user_can('level_2')) {} else {if (in_category('private')) continue;}
			 if ($images = get_children(array(
				'post_parent' => $post->ID,
				'numberposts' => '1',
				'post_type' => 'attachment',
				'post_mime_type' => 'image',
				'order' => 'ASC',
				'orderby' => 'menu_order')))  
			 foreach($images as $image) {  
				$exehill_image = $image->guid; 
				$exehill_thumb = wp_get_attachment_thumb_url( $image->ID);			
				} else {
				$exehill_thumb = site_url('/wp-content/themes/exehill2/images/noimage.png');
				} ?>


<div class="blog_container_2">

	<div class="blog_go"> <a href="<?php the_permalink() ?>" rel="bookmark" title=" <?php the_title(); ?>">Read more | <strong><?php the_time('M j, Y') ?></strong></a>
	</div>

	<div class="blog_left">
	
		<div class="blog_thumb" style="background: url(<?php echo $exehill_thumb; ?>) no-repeat; "><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"></a>
		</div>
	
	</div>
	
	<div class="blog_content">
	
		<div class="blog_headline">
		
			<span class="blog_title"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></span>
			
			<div class="clear">
			</div>
			
		</div>
		
		<div class="blog_excerpt"><?php the_excerpt(); ?>
		</div>
	
	</div>
	
	<div class="clear">
	</div>
	
</div>

<?php endwhile; ?>
	</div>
	
	<div class="main_left_bottom_2"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
	</div>
	
</div>
	
	<div class="main_right">
	<?php include (TEMPLATEPATH . '/sidebar_standard.php'); ?>
	</div>
	
	<div class="clear">
	</div>
	
</div>	

<?php get_footer(); ?>
